#include <iostream>
using namespace std;
class Complex{
public:
	int phanthuc,phanao;
	Complex(int thuc=0,int ao=0);
	Complex cong_sophuc(Complex other);
	Complex tru_sophuc(Complex other);
	void insophuc();
	~Complex();
};
Complex::Complex(int thuc,int ao){//Khong can` phai? nap. trong` lai. default arguments
	this->phanthuc = thuc;
	this->phanao = ao;
}
Complex Complex::cong_sophuc(Complex other){
	Complex cong(this->phanthuc+other.phanthuc,this->phanao+other.phanao);
	return cong;
}
Complex Complex::tru_sophuc(Complex other){
	Complex tru(this->phanthuc-other.phanthuc,this->phanao-other.phanao);
	return tru;
}
void Complex::insophuc(){
	cout << this->phanthuc << "+ j" << this->phanao << endl;
}
Complex::~Complex(){
}
int main(){
	Complex a(5,5);
	Complex b(6,7);
	Complex c = a.cong_sophuc(b);
	c.insophuc();
	return 0;
}
